/*    */
package com.liang.nansheng.common.auth;
/*    */
/*    */

import com.alibaba.ttl.TransmittableThreadLocal;

/*    */
/*    */ public class UserContextUtils
        /*    */ {
    /* 10 */   private static ThreadLocal<UserSsoDTO> threadLocal = new TransmittableThreadLocal();

    /*    */
    /*    */
    public static void removeCurrentUser()
    /*    */ {
        /* 16 */
        threadLocal.remove();
        /*    */
    }

    /*    */
    /*    */
    public static void setCurrentUser(UserSsoDTO value) {
        /* 20 */
        threadLocal.set(value);
        /*    */
    }

    /*    */
    /*    */
    public static UserSsoDTO currentUser() {
        /* 24 */
        return (UserSsoDTO) threadLocal.get();
        /*    */
    }
    /*    */
}

/* Location:           C:\maven\maven3.5\maven3.5\repositor\io\github\maliangnansheng\nansheng-common\3.3.4\nansheng-common-3.3.4.jar
 * Qualified Name:     com.liang.nansheng.common.auth.UserContextUtils
 * JD-Core Version:    0.6.2
 */